package com.ruoyi.api.v1;


import com.ruoyi.cinema.domain.Area;
import com.ruoyi.cinema.service.IAreaService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController("v1_Area")
@RequestMapping(value = "api/v1/area")
public class AreaController extends BaseController {

    @Autowired
    private IAreaService areaService;

    @RequestMapping("/list")
    public AjaxResult list(Area area)
    {
        List<Area> list = areaService.selectAreaList(area);
        return AjaxResult.success(list);
    }
}
